﻿<div ng-controller="tokenUserController">
    <div class="wrapper border-bottom white-bg page-heading">
        <div class="col-lg-pull-12">
            <ol class="breadcrumb">
                <li><a ui-sref="app.token.list">新增用户</a></li>
                <li class="active" ng-bind="breadcrumb"></li>
            </ol>
        </div>
    </div>
    <form name="_form" class="form-horizontal w5c-form" w5c-form-validate="model.validateOptions" role="form" novalidate>
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label">区号</label>
            <div class="col-sm-3">
                <input type="text" name="mobile_code" class="form-control " ng-model="model.mobile_code" required ng-bind="model.mobile_code='886'" readonly>
            </div>
        </div>
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label">手机号</label>
            <div class="col-sm-3">
                <input type="text" name="mobile" class="form-control " ng-model="model.mobile" required >
            </div>
        </div>
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label">登录密码</label>
            <div class="col-sm-3">
                <input type="text" name="password" class="form-control " ng-model="model.password" required >
            </div>
        </div>
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label">姓名</label>
            <div class="col-sm-3">
                <input type="text" name="user_name" class="form-control " ng-model="model.user_name" required >
            </div>
        </div>
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label">身份证</label>
            <div class="col-sm-3">
                <input type="text" name="card_no" class="form-control " ng-model="model.card_no" required >
            </div>
        </div>
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label">邀请码</label>
            <div class="col-sm-3">
                <input type="text" name="invitation_code" class="form-control " ng-model="model.invitation_code" required >
            </div>
        </div>
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label"></label>
            <div class="col-sm-3">
                <button type="submit" class="btn btn-primary btn-sm" w5c-form-submit="save()" btn-loading="psdisabled" loading-text="保存中..." ng-disabled="psdisabled">
                    <i class="fa fa-save"></i> 保存
                </button>
                <button ng-click="goBack()" class="btn btn-primary btn-sm"><i class="fa fa-rotate-left"></i> 取消</button>
            </div>
        </div>
    </form>
</div>